package com.CMS.client;

import java.util.List;

import com.CMS.server.domain.Page;
import com.google.gwt.user.client.rpc.AsyncCallback;

public interface PageServiceAsync {

	void create(Page page, AsyncCallback<Void> callback);
	
	void create(String name, String extension, long idLanguage, long idItemMenu, String content, 
				boolean activa, String alias,AsyncCallback<Void> callback);
	
	void fetch(AsyncCallback<List<Page>> callback);
	
	void getVisiblePages(AsyncCallback<List<Page>> callback);
	
	void getPage(long id, AsyncCallback<Page> callback);
	
	void update(long id, String name, String extension, long idLanguage, long idItemMenu, String content,
					boolean activa, String alias, AsyncCallback<Void> callback);
}
